-- GENERATED SPELL FOR [Guardian of the Eagle] --


function spell0_22993(pUnit, Event) --@Starfire,n/a--
pUnit:FullCastSpellOnTarget(40344,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22993', 4000, 1)
end

function spell1_22993(pUnit, Event) --@Wrath,n/a--
pUnit:FullCastSpellOnTarget(9739,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22993', 2000, 1)
end

function Sorts_22993(pUnit, Event)
local choix_sorts_22993 = math.random(0, 1)
if choix_sorts_22993 == 0 then
pUnit:RegisterEvent('spell0_22993', 1, 1)
end
if choix_sorts_22993 == 1 then
pUnit:RegisterEvent('spell1_22993', 1, 1)
end
end

function mob22993_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_22993', math.random(1500, 3000), 1)
end

function mob22993_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22993_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22993_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(22993, 1, 'mob22993_Action')
RegisterUnitEvent(22993, 2, 'mob22993_Leave')
RegisterUnitEvent(22993, 3, 'mob22993_Kill')
RegisterUnitEvent(22993, 4, 'mob22993_Die')
